$(document).ready(function () {
    if (sessionStorage.acct != undefined && sessionStorage.authenticated == 'true') {
        const url = '/personal_page/?acct=' + sessionStorage.acct;
        $('#i1').text(sessionStorage.acct);
        $('#i1').attr('href', url);
        $('#i2').text('登出');
        $('#i2').attr('href', '/logout');
    }
})